import { EquipmentType } from "@/pages/station/stubList/services"
import request from "@/utils/request"
import {
  DealRecord,
  DealRecordInfoType,
  DealRecordStatus,
  QueryDealRecordListParams,
} from '@/pages/normal/normalList/services';

export enum OccupySettleStatus {
  待打款 = 1,
  已打款 = 2,
  打款失败 = 3,
  '待打款(已修改资料)'= 4,
}

export interface QueryOccupySettleListParams extends PaginationParams {
  orgId?: number
  /** 前端用 */
  stationName?: string
  /** 订单号 */
  orderCode?: string
  /** 开始时间 */
  beginDay: string
  /** 结束时间 */
  endDay: string
}

export interface OccupySettle {
  orgId: number
  orgName: string
  num: number
}
export interface QueryShareStationListParams extends PaginationParams {
  orgId?: number
  /** 开始时间 */
  beginDay?: string
  /** 截止时间 */
  endDay?: string
}
export async function queryOccupySettleList(params: QueryOccupySettleListParams) {
  return request<OccupySettle[]>('/app/manager/shareCount/list', {
    data: params,
  })
}
export interface ShareStation {
  id: string
  stationName: string
  createTime: string
}
export async function queryShareStationList(params: QueryShareStationListParams) {
  return request<ShareStation[]>('/app/manager/share/station/list', {
    data: params,
  })
}
